package ch.hoth.java.joocal;

import com.google.gdata.data.extensions.EventEntry;


public class Event2 {
	
	private EventEntry entry;
	private Status status;
	
	public Event2(EventEntry entry){
		this.entry = entry;
		if (entry.getSelfLink() == null){
			status = Status.NEW;
		}
		else{
			status = Status.NONE;
		}
	}
	
	public void setStatus(Status status){
		this.status = status;
	}
	
	public EventEntry getGEntry(){
		return entry;
	}
	
	public boolean isPublished(){
		boolean value = true;
		if (status == Status.NEW){
			value = false;
		}
		return value;
	}
	
	public String getStatus(){
		return status.getString();
	}
	
	public EventEntry getEvent(){
		return entry;
	}

}
